package com.ksyun.whyc.xiongyu.zifuchuan;

public class PrintThread implements Runnable {
    private String id;
    private int count;

    public PrintThread(String id, int count) {
        this.id = id;
        this.count = count;
    }

    public void run() {
        for (int i = 0; i < count; i++) {
            System.out.print(id);
        }
    }

        public static void main(String[] args) {
            Thread threadA = new Thread(new PrintThread("A", 5));
            Thread threadB = new Thread(new PrintThread("B", 5));
            Thread threadC = new Thread(new PrintThread("C", 5));

            threadA.start();
            threadB.start();
            threadC.start();
    }
}
